#include "triangle.h"

using namespace Shapes;

Triangle::Triangle(double b, double h)
{
	base = b;
	height = h;
}

double Triangle::getBase()
{
	return base;
}

double Triangle::getHeight()
{
	return height;
}

double Triangle::area()
{
	return (base * height) / 2;
}

void Triangle::draw()
{

}

Triangle::~Triangle()
{
	cout<<"Triangle Destructor called \n";
}